import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import 'package:test/global/store/state.dart';
import 'package:test/entity/user.dart';

class ForgetPwdState implements GlobalBaseState, Cloneable<ForgetPwdState> {
  @override
  User user;

  TextEditingController phoneCtrl, validateCtrl, pwdCtrl, againCtrl;

  ForgetPwdState clone() {
    return ForgetPwdState()
      ..user = user
      ..phoneCtrl = phoneCtrl
      ..validateCtrl = validateCtrl
      ..pwdCtrl = pwdCtrl
      ..againCtrl = againCtrl;
  }
}

ForgetPwdState initState(Map<String, dynamic> args) {
  ForgetPwdState forgetPwdState = new ForgetPwdState();
  forgetPwdState
    ..phoneCtrl = TextEditingController()
    ..validateCtrl = TextEditingController()
    ..pwdCtrl = TextEditingController()
    ..againCtrl = TextEditingController();
  return forgetPwdState;
}
